import React from "react";
import PropTypes from 'prop-types';

export default class PropsTypeDemo extends React.Component{
    constructor(props){
        super(props)
    }

    render(){
        return (
            <div>
                Hello,{this.props.name}
            </div>
        )
    }
}

PropsTypeDemo.propTypes ={
    name:PropTypes.number
}